#include "ext2.h"
#include <fs/devfs/devfs.h>
#include <system/mod.h>

module_t ext2_module =
{
	.name = "ext2\0",
	.author = "dak\0",
	.license = "gpl\0",
	.desc = "\0",
	.dep = "\0",
	.type = MOD_TYPE_FS,
	
	.init = ext2_init,
	.shut = ext2_shut,
};


uint32_t ext2_init()
{
	ext2fs_root = (vfs_node_t *) malloc(sizeof(vfs_node_t));
	ext2fs_root->readdir = ext2_readdir;
	ext2fs_root->finddir = ext2_finddir;
	strcpy(ext2fs_root->name, "ext2\0");
	
	vfs_add_fs(ext2fs_root);		
}


uint32_t ext2_shut(){}


uint8_t ext2_readdir(vfs_node_t *node, char *name, uint32_t num)
{
	return 0;	
}


vfs_node_t *ext2_finddir(vfs_node_t *node, char *name)
{
	return NULL;
}
